package org.dromara.xhlj.domain.vo;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.dromara.xhlj.domain.XhljActivityUserParticipation;
import org.dromara.xhlj.domain.XhljActivityTask;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonIgnoreType;
import com.fasterxml.jackson.annotation.JsonInclude;
import org.dromara.common.core.utils.tree.TreeCruxField;
import org.dromara.wx.domain.WxUser;
import org.dromara.wx.domain.vo.WxUserVo;
import org.dromara.system.domain.SysUser;
import org.dromara.system.domain.vo.SysUserVo;
import org.dromara.common.translation.annotation.Translation;
import org.dromara.common.translation.constant.TransConstant;
import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import com.alibaba.excel.annotation.ExcelProperty;
import org.dromara.common.excel.annotation.ExcelDictFormat;
import org.dromara.common.excel.convert.ExcelDictConvert;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import org.springframework.transaction.annotation.Transactional;
import java.util.Date;
import java.io.Serial;
import java.io.Serializable;
import java.util.List;

/**
 * 活动参与视图对象 xhlj_activity_user_participation
 *
 * @author yf
 * @date 2024-07-28
 */
@Data
@ExcelIgnoreUnannotated
@AutoMapper(target = XhljActivityUserParticipation.class)
public class XhljActivityUserParticipationVo implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    /**
     * 参与ID，主键，自增
     */
    @ExcelProperty(value = "参与ID，主键，自增")
    private Integer participationId;
    /**
     * 完成状态（0=未完成，1=已完成）
     */
    @ExcelProperty(value = "完成状态", converter = ExcelDictConvert.class)
    @ExcelDictFormat(dictType = "completion_status")
    @Translation(type = TransConstant.DICT_TYPE_TO_LABEL, other = "completion_status", mapper = "completionStatus")
    private String completionStatusDictData;
    private String completionStatus;
    /**
     * 任务ID
     */
    @ExcelProperty(value = "任务ID")
    @JsonInclude(JsonInclude.Include.NON_NULL)
    @Translation(type = XhljActivityTask.TRANS_ID_TO_VO, mapper = "activityTaskId")
    private XhljActivityTaskVo activityTask;
    private Integer activityTaskId;
    /**
     * 创建人wx_user（西湖论剑用户）
     */
    @ExcelProperty(value = "创建人wx_user")
    @JsonInclude(JsonInclude.Include.NON_NULL)
    @Translation(type = WxUser.TRANS_ID_TO_VO, mapper = "createBy")
    private WxUserVo wxUser;
    private Integer createBy;
    /**
     * 完成标识（打卡图片）
     */
    @ExcelProperty(value = "完成标识")
    private String finishImage;
    /**
     * 完成标识（验证码）
     */
    @ExcelProperty(value = "完成标识")
    private String finishCode;
    /**
     * 完成标识（地点）
     */
    @ExcelProperty(value = "完成标识")
    private String finishMap;
    /**
     * 创建时间
     */
    @ExcelProperty(value = "创建时间")
    private Date createdTime;
}
